package perso.perso.view.admin.user;

import perso.perso.wsclient.HttpMiddlewareUserWSCall;

public class AddTeacherClassAction extends DisplayUserAdminAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String idTeacher;
	private String idClassToAddToTeacher;
	
	

	public String getIdTeacher() {
		return idTeacher;
	}



	public void setIdTeacher(String idTeacher) {
		this.idTeacher = idTeacher;
	}



	public String getIdClassToAddToTeacher() {
		return idClassToAddToTeacher;
	}



	public void setIdClassToAddToTeacher(String idClassToAddToTeacher) {
		this.idClassToAddToTeacher = idClassToAddToTeacher;
	}



	@Override
	public String execute() throws Exception {
		HttpMiddlewareUserWSCall h = new HttpMiddlewareUserWSCall();
		h.addTeacherClass(idTeacher, idClassToAddToTeacher);
		
		this.httpServletRequest.setAttribute("idTeacher", idTeacher);
		
		return super.execute();
	}

}
